package com.io.computer_practice_sjlx;
import java.io.*;
//ʹ���ֽ�����DataOutputStreamд�������ļ�//���Ը���ͼƬ����Ƶ�ļ�
public class DataOutput {
	public static void main(String[] args) {
		DataOutputStream out = null;
		DataInputStream dis = null;
		try{
			//��������������
			FileInputStream fis = new FileInputStream("D:\\����\\���ҷ��������µ������𴲡� - 1.���ҷ��������µ������𴲡�(Av583027077,P1).mp3");
			dis = new DataInputStream(fis);
			//�������������
			FileOutputStream outFile = new FileOutputStream("D:\\���ҷ��������µ������𴲡�.mp3");
			out = new DataOutputStream(outFile);
			int temp;
			//��ȡ�ļ���д���ļ�
			while( (temp=dis.read() ) !=-1 ){
				out.write(temp);
			}
			System.out.println("�ļ����Ƴɹ� !");
		}catch (IOException ioe) {
			ioe.printStackTrace();
		}finally{
					try {
						dis.close();
						out.close();
					} catch (IOException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
		}
	}
}
